const state = {
  fileUrl: undefined
}

const mutations = {
  SET_FILE_URL: (state, params) => {
    state.fileUrl = params
    localStorage.setItem('fileUrl', params)
  },
}

const actions = {
  setFileUrl({commit}, params) {
    commit('SET_FILE_URL', params)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
